package help

import net.cyndeline.rlgraph.util.EdgeCopyFactory
import scalax.collection.GraphEdge.UnDiEdge
import scalax.collection.GraphPredef._

/**
 * For use when copying edges with room vertices.
 */
class UndirectedEdgeFactory extends EdgeCopyFactory[RoomVertex, UnDiEdge] {
  def copyEdge(edge: UnDiEdge[RoomVertex], a: RoomVertex, b: RoomVertex): UnDiEdge[RoomVertex] with OuterEdge[RoomVertex, UnDiEdge] = {
    a~b
  }
}
